import request from '@/utils/request'
import type { listFormData } from './type'

//定义枚举类统一管理接口
enum API {
    LIST_URL = '/client/payment/list',
    MORE_URL = '/client/payment/more',
}

//列表
export const getPlayList = (data: listFormData) => request.post<any, any>(API.LIST_URL, data)

//案件详情-更多
export const getPlayMore = (data: listFormData) => request.post<any, any>(API.MORE_URL,data)

//完善办案日期
export const updateBailDate = (data: any) => request.post<any, any>('/client/payment/save_bail_date',data)

//修改主办单位
export const updateDepartment = (data: any) => request.post<any, any>('/client/payment/update_department',data)

//委托协办单位
export const updateEntrust = (data: any) => request.post<any, any>('/client/payment/entrust',data)

//获取案件的办案人列表
export const policeList = (data: any) => request.post<any, any>('/client/payment/get_police_list',data)

//关闭本案
export const closeBail = (data: any) => request.post<any, any>('/client/payment/close_bail',data)

//获取案件详情信息
export const getBailInfo = (data: any) => request.post<any, any>('/client/case/get_info',data)

//修改缴费案件信息
export const updateCaseInfo = (data: any) => request.post<any, any>('/client/payment/update_case_info',data)

//获取预留银行卡信息
export const getYlBank = (data: any) => request.post<any, any>('/client/bank/get_yl_bank',data)

//生成缴费二维码
export const getQrCode = (data: any) => request.post<any, any>('/client/payment/qrcode',data)

//获取缴费操作日志
export const getOperateLog = (data: any) => request.post<any, any>('/client/payment/get_operate_log',data)

//二维码页面数据
export const qrcodeView = (data: any) => request.post<any, any>('/client/payment/qrcode_view',data)

//缴费数据入警快办
export const addJkb = (data: any) => request.post<any, any>('/client/payment/add_jkb',data)

//撤销-生成缴费二维码 
export const revokeQrcode = (data: any) => request.post<any, any>('/client/payment/revoke_qrcode',data)

//修改办案人
export const saveBailPolice = (data: any) => request.post<any, any>('/client/payment/save_bail_police',data)

//完善当事人信息
export const saveCrimeInfo = (data: any) => request.post<any, any>('/client/payment/save_crime_info',data)

//修改预留银行卡
export const saveBailBank = (data: any) => request.post<any, any>('/client/bank/save_bail_bank',data)

//案件延期申请
export const applyBailDelay = (data: any) => request.post<any, any>('/client/payment/apply_bail_delay',data)